(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))c(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const x of m.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&c(x)}).observe(document,{childList:!0,subtree:!0});function d(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(h){if(h.ep)return;h.ep=!0;const m=d(h);fetch(h.href,m)}})();var Bc={exports:{}},Bn={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var uh;function gy(){if(uh)return Bn;uh=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function d(c,h,m){var x=null;if(m!==void 0&&(x=""+m),h.key!==void 0&&(x=""+h.key),"key"in h){m={};for(var T in h)T!=="key"&&(m[T]=h[T])}else m=h;return h=m.ref,{$$typeof:u,type:c,key:x,ref:h!==void 0?h:null,props:m}}return Bn.Fragment=s,Bn.jsx=d,Bn.jsxs=d,Bn}var oh;function by(){return oh||(oh=1,Bc.exports=gy()),Bc.exports}var r=by(),Gc={exports:{}},te={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ch;function xy(){if(ch)return te;ch=1;var u=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),x=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),M=Symbol.iterator;function Y(g){return g===null||typeof g!="object"?null:(g=M&&g[M]||g["@@iterator"],typeof g=="function"?g:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,q={};function G(g,U,L){this.props=g,this.context=U,this.refs=q,this.updater=L||X}G.prototype.isReactComponent={},G.prototype.setState=function(g,U){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,U,"setState")},G.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function F(){}F.prototype=G.prototype;function K(g,U,L){this.props=g,this.context=U,this.refs=q,this.updater=L||X}var de=K.prototype=new F;de.constructor=K,B(de,G.prototype),de.isPureReactComponent=!0;var re=Array.isArray;function I(){}var $={H:null,A:null,T:null,S:null},Se=Object.prototype.hasOwnProperty;function ge(g,U,L){var V=L.ref;return{$$typeof:u,type:g,key:U,ref:V!==void 0?V:null,props:L}}function Ke(g,U){return ge(g.type,U,g.props)}function Ve(g){return typeof g=="object"&&g!==null&&g.$$typeof===u}function ee(g){var U={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(L){return U[L]})}var we=/\/+/g;function Ae(g,U){return typeof g=="object"&&g!==null&&g.key!=null?ee(""+g.key):U.toString(36)}function ze(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(I,I):(g.status="pending",g.then(function(U){g.status==="pending"&&(g.status="fulfilled",g.value=U)},function(U){g.status==="pending"&&(g.status="rejected",g.reason=U)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function j(g,U,L,V,P){var le=typeof g;(le==="undefined"||le==="boolean")&&(g=null);var ve=!1;if(g===null)ve=!0;else switch(le){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(g.$$typeof){case u:case s:ve=!0;break;case C:return ve=g._init,j(ve(g._payload),U,L,V,P)}}if(ve)return P=P(g),ve=V===""?"."+Ae(g,0):V,re(P)?(L="",ve!=null&&(L=ve.replace(we,"$&/")+"/"),j(P,U,L,"",function(Za){return Za})):P!=null&&(Ve(P)&&(P=Ke(P,L+(P.key==null||g&&g.key===P.key?"":(""+P.key).replace(we,"$&/")+"/")+ve)),U.push(P)),1;ve=0;var Pe=V===""?".":V+":";if(re(g))for(var Me=0;Me>>1,pe=j[fe];if(0>>1;feh(L,k))Vh(P,L)?(j[fe]=P,j[V]=k,fe=V):(j[fe]=L,j[U]=k,fe=U);else if(Vh(P,k))j[fe]=P,j[V]=k,fe=V;else break e}}return H}function h(j,H){var k=j.sortIndex-H.sortIndex;return k!==0?k:j.id-H.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;u.unstable_now=function(){return m.now()}}else{var x=Date,T=x.now();u.unstable_now=function(){return x.now()-T}}var b=[],y=[],C=1,N=null,M=3,Y=!1,X=!1,B=!1,q=!1,G=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function de(j){for(var H=d(y);H!==null;){if(H.callback===null)c(y);else if(H.startTime<=j)c(y),H.sortIndex=H.expirationTime,s(b,H);else break;H=d(y)}}function re(j){if(B=!1,de(j),!X)if(d(b)!==null)X=!0,I||(I=!0,ee());else{var H=d(y);H!==null&&ze(re,H.startTime-j)}}var I=!1,$=-1,Se=5,ge=-1;function Ke(){return q?!0:!(u.unstable_now()-gej&&Ke());){var fe=N.callback;if(typeof fe=="function"){N.callback=null,M=N.priorityLevel;var pe=fe(N.expirationTime<=j);if(j=u.unstable_now(),typeof pe=="function"){N.callback=pe,de(j),H=!0;break t}N===d(b)&&c(b),de(j)}else c(b);N=d(b)}if(N!==null)H=!0;else{var g=d(y);g!==null&&ze(re,g.startTime-j),H=!1}}break e}finally{N=null,M=k,Y=!1}H=void 0}}finally{H?ee():I=!1}}}var ee;if(typeof K=="function")ee=function(){K(Ve)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,Ae=we.port2;we.port1.onmessage=Ve,ee=function(){Ae.postMessage(null)}}else ee=function(){G(Ve,0)};function ze(j,H){$=G(function(){j(u.unstable_now())},H)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(j){j.callback=null},u.unstable_forceFrameRate=function(j){0>j||125fe?(j.sortIndex=k,s(y,j),d(b)===null&&j===d(y)&&(B?(F($),$=-1):B=!0,ze(re,k-fe))):(j.sortIndex=pe,s(b,j),X||Y||(X=!0,I||(I=!0,ee()))),j},u.unstable_shouldYield=Ke,u.unstable_wrapCallback=function(j){var H=M;return function(){var k=M;M=H;try{return j.apply(this,arguments)}finally{M=k}}}})(Xc)),Xc}var fh;function Ty(){return fh||(fh=1,Vc.exports=Sy()),Vc.exports}var Qc={exports:{}},Fe={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var dh;function Ey(){if(dh)return Fe;dh=1;var u=Wc();function s(b){var y="https://react.dev/errors/"+b;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),Qc.exports=Ey(),Qc.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var mh;function Ry(){if(mh)return Gn;mh=1;var u=Ty(),s=Wc(),d=jh();function c(e){var t="https://react.dev/errors/"+e;if(1pe||(e.current=fe[pe],fe[pe]=null,pe--)}function L(e,t){pe++,fe[pe]=e.current,e.current=t}var V=g(null),P=g(null),le=g(null),ve=g(null);function Pe(e,t){switch(L(le,t),L(P,e),L(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jd(t),e=zd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(V),L(V,e)}function Me(){U(V),U(P),U(le)}function Za(e){e.memoizedState!==null&&L(ve,e);var t=V.current,l=zd(t,e.type);t!==l&&(L(P,e),L(V,l))}function In(e){P.current===e&&(U(V),U(P)),ve.current===e&&(U(ve),Mn._currentValue=k)}var xu,nr;function Ml(e){if(xu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);xu=t&&t[1]||"",nr=-1)":-1n||p[a]!==R[n]){var z=` `+p[a].replace(" at new "," at ");return e.displayName&&z.includes("")&&(z=z.replace("",e.displayName)),z}while(1<=a&&0<=n);break}}}finally{Su=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ml(l):""}function Ih(e,t){switch(e.tag){case 26:case 27:case 5:return Ml(e.type);case 16:return Ml("Lazy");case 13:return e.child!==t&&t!==null?Ml("Suspense Fallback"):Ml("Suspense");case 19:return Ml("SuspenseList");case 0:case 15:return Tu(e.type,!1);case 11:return Tu(e.type.render,!1);case 1:return Tu(e.type,!0);case 31:return Ml("Activity");default:return""}}function ir(e){try{var t="",l=null;do t+=Ih(e,l),l=e,e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var Eu=Object.prototype.hasOwnProperty,Ru=u.unstable_scheduleCallback,Au=u.unstable_cancelCallback,$h=u.unstable_shouldYield,Wh=u.unstable_requestPaint,ct=u.unstable_now,Fh=u.unstable_getCurrentPriorityLevel,ur=u.unstable_ImmediatePriority,or=u.unstable_UserBlockingPriority,$n=u.unstable_NormalPriority,Ph=u.unstable_LowPriority,cr=u.unstable_IdlePriority,em=u.log,tm=u.unstable_setDisableYieldValue,Ka=null,rt=null;function sl(e){if(typeof em=="function"&&tm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ka,e)}catch{}}var st=Math.clz32?Math.clz32:nm,lm=Math.log,am=Math.LN2;function nm(e){return e>>>=0,e===0?32:31-(lm(e)/am|0)|0}var Wn=256,Fn=262144,Pn=4194304;function Hl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ei(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~i,a!==0?n=Hl(a):(o&=f,o!==0?n=Hl(o):l||(l=f&~e,l!==0&&(n=Hl(l))))):(f=a&~i,f!==0?n=Hl(f):o!==0?n=Hl(o):l||(l=a&~e,l!==0&&(n=Hl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Ja(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function im(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rr(){var e=Pn;return Pn<<=1,(Pn&62914560)===0&&(Pn=4194304),e}function Nu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function um(e,t,l,a,n,i){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,p=e.expirationTimes,R=e.hiddenUpdates;for(l=o&~l;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dm=/[\n"\\]/g;function bt(e){return e.replace(dm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _u(e,t,l,a,n,i,o,f){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gt(t)):e.value!==""+gt(t)&&(e.value=""+gt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Uu(e,o,gt(t)):l!=null?Uu(e,o,gt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+gt(f):e.removeAttribute("name")}function Tr(e,t,l,a,n,i,o,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Cu(e);return}l=l!=null?""+gt(l):"",t=t!=null?""+gt(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Cu(e)}function Uu(e,t,l){t==="number"&&ai(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=!1;if(Qt)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{Yu=!1}var dl=null,Bu=null,ii=null;function jr(){if(ii)return ii;var e,t=Bu,l=t.length,a,n="value"in dl?dl.value:dl.textContent,i=n.length;for(e=0;e=tn),Mr=" ",Hr=!1;function Lr(e,t){switch(e){case"keyup":return Gm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sa=!1;function Vm(e,t){switch(e){case"compositionend":return Yr(t);case"keypress":return t.which!==32?null:(Hr=!0,Mr);case"textInput":return e=t.data,e===Mr&&Hr?null:e;default:return null}}function Xm(e,t){if(sa)return e==="compositionend"||!Qu&&Lr(e,t)?(e=jr(),ii=Bu=dl=null,sa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Kr(l)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ir(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ai(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ai(e.document)}return t}function Ju(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Wm=Qt&&"documentMode"in document&&11>=document.documentMode,fa=null,ku=null,un=null,Iu=!1;function $r(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Iu||fa==null||fa!==ai(a)||(a=fa,"selectionStart"in a&&Ju(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),un&&nn(un,a)||(un=a,a=Fi(ku,"onSelect"),0>=o,n-=o,Ut=1<<32-st(t)+n|l<ne?(ce=Z,Z=null):ce=Z.sibling;var me=A(S,Z,E[ne],_);if(me===null){Z===null&&(Z=ce);break}e&&Z&&me.alternate===null&&t(S,Z),v=i(me,v,ne),he===null?J=me:he.sibling=me,he=me,Z=ce}if(ne===E.length)return l(S,Z),se&&Kt(S,ne),J;if(Z===null){for(;nene?(ce=Z,Z=null):ce=Z.sibling;var Dl=A(S,Z,me.value,_);if(Dl===null){Z===null&&(Z=ce);break}e&&Z&&Dl.alternate===null&&t(S,Z),v=i(Dl,v,ne),he===null?J=Dl:he.sibling=Dl,he=Dl,Z=ce}if(me.done)return l(S,Z),se&&Kt(S,ne),J;if(Z===null){for(;!me.done;ne++,me=E.next())me=D(S,me.value,_),me!==null&&(v=i(me,v,ne),he===null?J=me:he.sibling=me,he=me);return se&&Kt(S,ne),J}for(Z=a(Z);!me.done;ne++,me=E.next())me=O(Z,S,ne,me.value,_),me!==null&&(e&&me.alternate!==null&&Z.delete(me.key===null?ne:me.key),v=i(me,v,ne),he===null?J=me:he.sibling=me,he=me);return e&&Z.forEach(function(vy){return t(S,vy)}),se&&Kt(S,ne),J}function Re(S,v,E,_){if(typeof E=="object"&&E!==null&&E.type===B&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:e:{for(var J=E.key;v!==null;){if(v.key===J){if(J=E.type,J===B){if(v.tag===7){l(S,v.sibling),_=n(v,E.props.children),_.return=S,S=_;break e}}else if(v.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Se&&Jl(J)===v.type){l(S,v.sibling),_=n(v,E.props),dn(_,E),_.return=S,S=_;break e}l(S,v);break}else t(S,v);v=v.sibling}E.type===B?(_=Vl(E.props.children,S.mode,_,E.key),_.return=S,S=_):(_=pi(E.type,E.key,E.props,null,S.mode,_),dn(_,E),_.return=S,S=_)}return o(S);case X:e:{for(J=E.key;v!==null;){if(v.key===J)if(v.tag===4&&v.stateNode.containerInfo===E.containerInfo&&v.stateNode.implementation===E.implementation){l(S,v.sibling),_=n(v,E.children||[]),_.return=S,S=_;break e}else{l(S,v);break}else t(S,v);v=v.sibling}_=lo(E,S.mode,_),_.return=S,S=_}return o(S);case Se:return E=Jl(E),Re(S,v,E,_)}if(ze(E))return Q(S,v,E,_);if(ee(E)){if(J=ee(E),typeof J!="function")throw Error(c(150));return E=J.call(E),W(S,v,E,_)}if(typeof E.then=="function")return Re(S,v,Ti(E),_);if(E.$$typeof===K)return Re(S,v,gi(S,E),_);Ei(S,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,v!==null&&v.tag===6?(l(S,v.sibling),_=n(v,E),_.return=S,S=_):(l(S,v),_=to(E,S.mode,_),_.return=S,S=_),o(S)):l(S,v)}return function(S,v,E,_){try{fn=0;var J=Re(S,v,E,_);return Ta=null,J}catch(Z){if(Z===Sa||Z===xi)throw Z;var he=dt(29,Z,null,S.mode);return he.lanes=_,he.return=S,he}finally{}}}var Il=bs(!0),xs=bs(!1),vl=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ye&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=mi(e),as(e,null,l),t}return hi(e,a,t,l),mi(e)}function hn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,fr(e,l)}}function vo(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=o:i=i.next=o,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var go=!1;function mn(){if(go){var e=xa;if(e!==null)throw e}}function pn(e,t,l,a){go=!1;var n=e.updateQueue;vl=!1;var i=n.firstBaseUpdate,o=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var p=f,R=p.next;p.next=null,o===null?i=R:o.next=R,o=p;var z=e.alternate;z!==null&&(z=z.updateQueue,f=z.lastBaseUpdate,f!==o&&(f===null?z.firstBaseUpdate=R:f.next=R,z.lastBaseUpdate=p))}if(i!==null){var D=n.baseState;o=0,z=R=p=null,f=i;do{var A=f.lane&-536870913,O=A!==f.lane;if(O?(oe&A)===A:(a&A)===A){A!==0&&A===ba&&(go=!0),z!==null&&(z=z.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var Q=e,W=f;A=t;var Re=l;switch(W.tag){case 1:if(Q=W.payload,typeof Q=="function"){D=Q.call(Re,D,A);break e}D=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=W.payload,A=typeof Q=="function"?Q.call(Re,D,A):Q,A==null)break e;D=N({},D,A);break e;case 2:vl=!0}}A=f.callback,A!==null&&(e.flags|=64,O&&(e.flags|=8192),O=n.callbacks,O===null?n.callbacks=[A]:O.push(A))}else O={lane:A,tag:f.tag,payload:f.payload,callback:f.callback,next:null},z===null?(R=z=O,p=D):z=z.next=O,o|=A;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;O=f,f=O.next,O.next=null,n.lastBaseUpdate=O,n.shared.pending=null}}while(!0);z===null&&(p=D),n.baseState=p,n.firstBaseUpdate=R,n.lastBaseUpdate=z,i===null&&(n.shared.lanes=0),Rl|=o,e.lanes=o,e.memoizedState=D}}function Ss(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Ts(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;ei?i:8;var o=j.T,f={};j.T=f,Lo(e,!1,t,l);try{var p=n(),R=j.S;if(R!==null&&R(f,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var z=up(p,a);gn(e,t,z,vt(e))}else gn(e,t,a,vt(e))}catch(D){gn(e,t,{then:function(){},status:"rejected",reason:D},vt())}finally{H.p=i,o!==null&&f.types!==null&&(o.types=f.types),j.T=o}}function dp(){}function Mo(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=ef(e).queue;Ps(e,n,t,k,l===null?dp:function(){return tf(e),l(a)})}function ef(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:k},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tf(e){var t=ef(e);t.next===null&&(t=e.alternate.memoizedState),gn(e,t.next.queue,{},vt())}function Ho(){return Ie(Mn)}function lf(){return Le().memoizedState}function af(){return Le().memoizedState}function hp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vt();e=gl(l);var a=bl(t,e,l);a!==null&&(ot(a,t,l),hn(a,t,l)),t={cache:so()},e.payload=t;return}t=t.return}}function mp(e,t,l){var a=vt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ui(e)?uf(t,l):(l=Pu(e,t,l,a),l!==null&&(ot(l,e,a),of(l,t,a)))}function nf(e,t,l){var a=vt();gn(e,t,l,a)}function gn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))uf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,f=i(o,l);if(n.hasEagerState=!0,n.eagerState=f,ft(f,o))return hi(e,t,n,0),Ne===null&&di(),!1}catch{}finally{}if(l=Pu(e,t,n,a),l!==null)return ot(l,e,a),of(l,t,a),!0}return!1}function Lo(e,t,l,a){if(a={lane:2,revertLane:pc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(c(479))}else t=Pu(e,l,a,2),t!==null&&ot(t,e,2)}function Ui(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function uf(e,t){Ra=Ni=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function of(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,fr(e,l)}}var bn={readContext:Ie,use:ji,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};bn.useEffectEvent=Ue;var cf={readContext:Ie,use:ji,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Ie,useEffect:Qs,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ci(4194308,4,ks.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){Ci(4,2,e,t)},useMemo:function(e,t){var l=et();t=t===void 0?null:t;var a=e();if($l){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=et();if(l!==void 0){var n=l(t);if($l){sl(!0);try{l(t)}finally{sl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=mp.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,l=nf.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Uo,useDeferredValue:function(e,t){var l=et();return Do(l,e,t)},useTransition:function(){var e=zo(!1);return e=Ps.bind(null,ae,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=et();if(se){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Ne===null)throw Error(c(349));(oe&127)!==0||Os(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Qs(zs.bind(null,a,i,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},js.bind(null,a,i,l,t),null),l},useId:function(){var e=et(),t=Ne.identifierPrefix;if(se){var l=Dt,a=Ut;l=(a&~(1<<32-st(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=wi++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}i[Je]=t,i[tt]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(We(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ft(t)}}return je(t),Wo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=le.current,va(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=ke,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||wd(e.nodeValue,l)),e||pl(t,!0)}else e=Pi(e).createTextNode(a),e[Je]=t,t.stateNode=e}return je(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=va(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Je]=t}else Xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),e=!1}else l=uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return je(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=va(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[Je]=t}else Xl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;je(t),n=!1}else n=uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Yi(t,t.updateQueue),je(t),null);case 4:return Me(),e===null&&bc(t.stateNode.containerInfo),je(t),null;case 10:return kt(t.type),je(t),null;case 19:if(U(He),a=t.memoizedState,a===null)return je(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Sn(a,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ai(e),i!==null){for(t.flags|=128,Sn(a,!1),e=i.updateQueue,t.updateQueue=e,Yi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)ns(l,e),l=l.sibling;return L(He,He.current&1|2),se&&Kt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ct()>Xi&&(t.flags|=128,n=!0,Sn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ai(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Yi(t,e),Sn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!se)return je(t),null}else 2*ct()-a.renderingStartTime>Xi&&l!==536870912&&(t.flags|=128,n=!0,Sn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ct(),e.sibling=null,l=He.current,L(He,n?l&1|2:l&1),se&&Kt(t,a.treeForkCount),e):(je(t),null);case 22:case 23:return mt(t),xo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(je(t),t.subtreeFlags&6&&(t.flags|=8192)):je(t),l=t.updateQueue,l!==null&&Yi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(Kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),kt(Ye),je(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function bp(e,t){switch(no(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kt(Ye),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return In(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(c(340));Xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Xl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(He),null;case 4:return Me(),null;case 10:return kt(t.type),null;case 22:case 23:return mt(t),xo(),e!==null&&U(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return kt(Ye),null;case 25:return null;default:return null}}function _f(e,t){switch(no(t),t.tag){case 3:kt(Ye),Me();break;case 26:case 27:case 5:In(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:U(He);break;case 10:kt(t.type);break;case 22:case 23:mt(t),xo(),e!==null&&U(Kl);break;case 24:kt(Ye)}}function Tn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,o=l.inst;a=i(),o.destroy=a}l=l.next}while(l!==n)}}catch(f){xe(t,t.return,f)}}function Tl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var o=a.inst,f=o.destroy;if(f!==void 0){o.destroy=void 0,n=t;var p=l,R=f;try{R()}catch(z){xe(n,p,z)}}}a=a.next}while(a!==i)}}catch(z){xe(t,t.return,z)}}function Uf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ts(t,l)}catch(a){xe(e,e.return,a)}}}function Df(e,t,l){l.props=Wl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){xe(e,t,a)}}function En(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){xe(e,t,n)}}function Mt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){xe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){xe(e,t,n)}else l.current=null}function Mf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){xe(e,e.return,n)}}function Fo(e,t,l){try{var a=e.stateNode;qp(a,e.type,l,t),a[tt]=t}catch(n){xe(e,e.return,n)}}function Hf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&jl(e.type)||e.tag===4}function Po(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&jl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ec(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Xt));else if(a!==4&&(a===27&&jl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(ec(e,t,l),e=e.sibling;e!==null;)ec(e,t,l),e=e.sibling}function Bi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&jl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Bi(e,t,l),e=e.sibling;e!==null;)Bi(e,t,l),e=e.sibling}function Lf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);We(t,a,l),t[Je]=e,t[tt]=l}catch(i){xe(e,e.return,i)}}var Pt=!1,qe=!1,tc=!1,Yf=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function xp(e,t){if(e=e.containerInfo,Tc=uu,e=Ir(e),Ju(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var o=0,f=-1,p=-1,R=0,z=0,D=e,A=null;t:for(;;){for(var O;D!==l||n!==0&&D.nodeType!==3||(f=o+n),D!==i||a!==0&&D.nodeType!==3||(p=o+a),D.nodeType===3&&(o+=D.nodeValue.length),(O=D.firstChild)!==null;)A=D,D=O;for(;;){if(D===e)break t;if(A===l&&++R===n&&(f=o),A===i&&++z===a&&(p=o),(O=D.nextSibling)!==null)break;D=A,A=D.parentNode}D=O}l=f===-1||p===-1?null:{start:f,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ec={focusedElem:e,selectionRange:l},uu=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l title"))),We(i,a,l),i[Je]=e,Qe(i),a=i;break e;case"link":var o=Qd("link","href",n).get(a+(l.href||""));if(o){for(var f=0;fRe&&(o=Re,Re=W,W=o);var S=Jr(f,W),v=Jr(f,Re);if(S&&v&&(O.rangeCount!==1||O.anchorNode!==S.node||O.anchorOffset!==S.offset||O.focusNode!==v.node||O.focusOffset!==v.offset)){var E=D.createRange();E.setStart(S.node,S.offset),O.removeAllRanges(),W>Re?(O.addRange(E),O.extend(v.node,v.offset)):(E.setEnd(v.node,v.offset),O.addRange(E))}}}}for(D=[],O=f;O=O.parentNode;)O.nodeType===1&&D.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;fl?32:l,j.T=null,l=cc,cc=null;var i=Nl,o=nl;if(Xe=0,Ca=Nl=null,nl=0,(ye&6)!==0)throw Error(c(331));var f=ye;if(ye|=4,If(i.current),Kf(i,i.current,o,l),ye=f,jn(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ka,i)}catch{}return!0}finally{H.p=n,j.T=a,hd(e,t)}}function pd(e,t,l){t=St(l,t),t=qo(e.stateNode,t,2),e=bl(e,t,2),e!==null&&(ka(e,2),Ht(e))}function xe(e,t,l){if(e.tag===3)pd(e,e,l);else for(;t!==null;){if(t.tag===3){pd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Al===null||!Al.has(a))){e=St(l,e),l=yf(2),a=bl(t,l,2),a!==null&&(vf(l,a,t,e),ka(a,2),Ht(a));break}}t=t.return}}function dc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Ep;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(nc=!0,n.add(l),e=Op.bind(null,e,t,l),t.then(e,e))}function Op(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ne===e&&(oe&l)===l&&(De===4||De===3&&(oe&62914560)===oe&&300>ct()-Vi?(ye&2)===0&&_a(e,0):ic|=l,za===oe&&(za=0)),Ht(e)}function yd(e,t){t===0&&(t=rr()),e=ql(e,t),e!==null&&(ka(e,t),Ht(e))}function jp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),yd(e,l)}function zp(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),yd(e,l)}function Cp(e,t){return Ru(e,t)}var Ii=null,Da=null,hc=!1,$i=!1,mc=!1,Ol=0;function Ht(e){e!==Da&&e.next===null&&(Da===null?Ii=Da=e:Da=Da.next=e),$i=!0,hc||(hc=!0,Up())}function jn(e,t){if(!mc&&$i){mc=!0;do for(var l=!1,a=Ii;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var o=a.suspendedLanes,f=a.pingedLanes;i=(1<<31-st(42|e)+1)-1,i&=n&~(o&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,xd(a,i))}else i=oe,i=ei(a,a===Ne?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Ja(a,i)||(l=!0,xd(a,i));a=a.next}while(l);mc=!1}}function _p(){vd()}function vd(){$i=hc=!1;var e=0;Ol!==0&&Xp()&&(e=Ol);for(var t=ct(),l=null,a=Ii;a!==null;){var n=a.next,i=gd(a,t);i===0?(a.next=null,l===null?Ii=n:l.next=n,n===null&&(Da=l)):(l=a,(e!==0||(i&3)!==0)&&($i=!0)),a=n}Xe!==0&&Xe!==5||jn(e),Ol!==0&&(Ol=0)}function gd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0f)break;var z=p.transferSize,D=p.initiatorType;z&&Od(D)&&(p=p.responseEnd,o+=z*(p"u"?null:document;function Gd(e,t,l){var a=Ma;if(a&&typeof t=="string"&&t){var n=bt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Bd.has(n)||(Bd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),We(t,"link",e),Qe(t),a.head.appendChild(t)))}}function Fp(e){il.D(e),Gd("dns-prefetch",e,null)}function Pp(e,t){il.C(e,t),Gd("preconnect",e,t)}function ey(e,t,l){il.L(e,t,l);var a=Ma;if(a&&e&&t){var n='link[rel="preload"][as="'+bt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+bt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+bt(l.imageSizes)+'"]')):n+='[href="'+bt(e)+'"]';var i=n;switch(t){case"style":i=Ha(e);break;case"script":i=La(e)}wt.has(i)||(e=N({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),wt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Un(i))||t==="script"&&a.querySelector(Dn(i))||(t=a.createElement("link"),We(t,"link",e),Qe(t),a.head.appendChild(t)))}}function ty(e,t){il.m(e,t);var l=Ma;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+bt(a)+'"][href="'+bt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=La(e)}if(!wt.has(i)&&(e=N({rel:"modulepreload",href:e},t),wt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Dn(i)))return}a=l.createElement("link"),We(a,"link",e),Qe(a),l.head.appendChild(a)}}}function ly(e,t,l){il.S(e,t,l);var a=Ma;if(a&&e){var n=na(a).hoistableStyles,i=Ha(e);t=t||"default";var o=n.get(i);if(!o){var f={loading:0,preload:null};if(o=a.querySelector(Un(i)))f.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},l),(l=wt.get(i))&&zc(e,l);var p=o=a.createElement("link");Qe(p),We(p,"link",e),p._p=new Promise(function(R,z){p.onload=R,p.onerror=z}),p.addEventListener("load",function(){f.loading|=1}),p.addEventListener("error",function(){f.loading|=2}),f.loading|=4,tu(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:f},n.set(i,o)}}}function ay(e,t){il.X(e,t);var l=Ma;if(l&&e){var a=na(l).hoistableScripts,n=La(e),i=a.get(n);i||(i=l.querySelector(Dn(n)),i||(e=N({src:e,async:!0},t),(t=wt.get(n))&&Cc(e,t),i=l.createElement("script"),Qe(i),We(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function ny(e,t){il.M(e,t);var l=Ma;if(l&&e){var a=na(l).hoistableScripts,n=La(e),i=a.get(n);i||(i=l.querySelector(Dn(n)),i||(e=N({src:e,async:!0,type:"module"},t),(t=wt.get(n))&&Cc(e,t),i=l.createElement("script"),Qe(i),We(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function qd(e,t,l,a){var n=(n=le.current)?eu(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=na(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ha(l.href);var i=na(n).hoistableStyles,o=i.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=n.querySelector(Un(e)))&&!i._p&&(o.instance=i,o.state.loading=5),wt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},wt.set(e,l),i||iy(n,e,l,o.state))),t&&a===null)throw Error(c(528,""));return o}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=La(l),l=na(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Ha(e){return'href="'+bt(e)+'"'}function Un(e){return'link[rel="stylesheet"]['+e+"]"}function Vd(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function iy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),We(t,"link",l),Qe(t),e.head.appendChild(t))}function La(e){return'[src="'+bt(e)+'"]'}function Dn(e){return"script[async]"+e}function Xd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+bt(l.href)+'"]');if(a)return t.instance=a,Qe(a),a;var n=N({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),We(a,"style",n),tu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var i=e.querySelector(Un(n));if(i)return t.state.loading|=4,t.instance=i,Qe(i),i;a=Vd(l),(n=wt.get(n))&&zc(a,n),i=(e.ownerDocument||e).createElement("link"),Qe(i);var o=i;return o._p=new Promise(function(f,p){o.onload=f,o.onerror=p}),We(i,"link",a),t.state.loading|=4,tu(i,l.precedence,e),t.instance=i;case"script":return i=La(l.src),(n=e.querySelector(Dn(i)))?(t.instance=n,Qe(n),n):(a=l,(n=wt.get(i))&&(a=N({},l),Cc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Qe(n),We(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,tu(a,l.precedence,e));return t.instance}function tu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,o=0;o title"):null)}function uy(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Kd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function oy(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ha(a.href),i=t.querySelector(Un(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=au.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Qe(i);return}i=t.ownerDocument||t,a=Vd(a),(n=wt.get(n))&&zc(a,n),i=i.createElement("link"),Qe(i);var o=i;o._p=new Promise(function(f,p){o.onload=f,o.onerror=p}),We(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=au.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var _c=0;function cy(e,t){return e.stylesheets&&e.count===0&&iu(e,e.stylesheets),0_c?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)iu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nu=null;function iu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nu=new Map,t.forEach(ry,e),nu=null,au.call(e))}function ry(e,t){if(!(t.state.loading&4)){var l=nu.get(e);if(l)var a=l.get(null);else{l=new Map,nu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(s){console.error(s)}}return u(),qc.exports=Ry(),qc.exports}var Ny=Ay();/** * react-router v7.13.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var yh="popstate";function vh(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function wy(u={}){function s(c,h){var y;let m=(y=h.state)==null?void 0:y.masked,{pathname:x,search:T,hash:b}=m||c.location;return Ic("",{pathname:x,search:T,hash:b},h.state&&h.state.usr||null,h.state&&h.state.key||"default",m?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function d(c,h){return typeof h=="string"?h:Zn(h)}return jy(s,d,null,u)}function _e(u,s){if(u===!1||u===null||typeof u>"u")throw new Error(s)}function Gt(u,s){if(!u){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Oy(){return Math.random().toString(36).substring(2,10)}function gh(u,s){return{usr:u.state,key:u.key,idx:s,masked:u.unstable_mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function Ic(u,s,d=null,c,h){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof s=="string"?Va(s):s,state:d,key:s&&s.key||c||Oy(),unstable_mask:h}}function Zn({pathname:u="/",search:s="",hash:d=""}){return s&&s!=="?"&&(u+=s.charAt(0)==="?"?s:"?"+s),d&&d!=="#"&&(u+=d.charAt(0)==="#"?d:"#"+d),u}function Va(u){let s={};if(u){let d=u.indexOf("#");d>=0&&(s.hash=u.substring(d),u=u.substring(0,d));let c=u.indexOf("?");c>=0&&(s.search=u.substring(c),u=u.substring(0,c)),u&&(s.pathname=u)}return s}function jy(u,s,d,c={}){let{window:h=document.defaultView,v5Compat:m=!1}=c,x=h.history,T="POP",b=null,y=C();y==null&&(y=0,x.replaceState({...x.state,idx:y},""));function C(){return(x.state||{idx:null}).idx}function N(){T="POP";let q=C(),G=q==null?null:q-y;y=q,b&&b({action:T,location:B.location,delta:G})}function M(q,G){T="PUSH";let F=vh(q)?q:Ic(B.location,q,G);y=C()+1;let K=gh(F,y),de=B.createHref(F.unstable_mask||F);try{x.pushState(K,"",de)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;h.location.assign(de)}m&&b&&b({action:T,location:B.location,delta:1})}function Y(q,G){T="REPLACE";let F=vh(q)?q:Ic(B.location,q,G);y=C();let K=gh(F,y),de=B.createHref(F.unstable_mask||F);x.replaceState(K,"",de),m&&b&&b({action:T,location:B.location,delta:0})}function X(q){return zy(q)}let B={get action(){return T},get location(){return u(h,x)},listen(q){if(b)throw new Error("A history only accepts one active listener");return h.addEventListener(yh,N),b=q,()=>{h.removeEventListener(yh,N),b=null}},createHref(q){return s(h,q)},createURL:X,encodeLocation(q){let G=X(q);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:M,replace:Y,go(q){return x.go(q)}};return B}function zy(u,s=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),_e(d,"No window.location.(origin|href) available to create URL");let c=typeof u=="string"?u:Zn(u);return c=c.replace(/ $/,"%20"),!s&&c.startsWith("//")&&(c=d+c),new URL(c,d)}function zh(u,s,d="/"){return Cy(u,s,d,!1)}function Cy(u,s,d,c){let h=typeof s=="string"?Va(s):s,m=ol(h.pathname||"/",d);if(m==null)return null;let x=Ch(u);_y(x);let T=null;for(let b=0;T==null&&b{let C={relativePath:y===void 0?x.path||"":y,caseSensitive:x.caseSensitive===!0,childrenIndex:T,route:x};if(C.relativePath.startsWith("/")){if(!C.relativePath.startsWith(c)&&b)return;_e(C.relativePath.startsWith(c),`Absolute route path "${C.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),C.relativePath=C.relativePath.slice(c.length)}let N=Bt([c,C.relativePath]),M=d.concat(C);x.children&&x.children.length>0&&(_e(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${N}".`),Ch(x.children,s,M,N,b)),!(x.path==null&&!x.index)&&s.push({path:N,score:By(N,x.index),routesMeta:M})};return u.forEach((x,T)=>{var b;if(x.path===""||!((b=x.path)!=null&&b.includes("?")))m(x,T);else for(let y of _h(x.path))m(x,T,!0,y)}),s}function _h(u){let s=u.split("/");if(s.length===0)return[];let[d,...c]=s,h=d.endsWith("?"),m=d.replace(/\?$/,"");if(c.length===0)return h?[m,""]:[m];let x=_h(c.join("/")),T=[];return T.push(...x.map(b=>b===""?m:[m,b].join("/"))),h&&T.push(...x),T.map(b=>u.startsWith("/")&&b===""?"/":b)}function _y(u){u.sort((s,d)=>s.score!==d.score?d.score-s.score:Gy(s.routesMeta.map(c=>c.childrenIndex),d.routesMeta.map(c=>c.childrenIndex)))}var Uy=/^:[\w-]+$/,Dy=3,My=2,Hy=1,Ly=10,Yy=-2,bh=u=>u==="*";function By(u,s){let d=u.split("/"),c=d.length;return d.some(bh)&&(c+=Yy),s&&(c+=My),d.filter(h=>!bh(h)).reduce((h,m)=>h+(Uy.test(m)?Dy:m===""?Hy:Ly),c)}function Gy(u,s){return u.length===s.length&&u.slice(0,-1).every((c,h)=>c===s[h])?u[u.length-1]-s[s.length-1]:0}function qy(u,s,d=!1){let{routesMeta:c}=u,h={},m="/",x=[];for(let T=0;T{if(C==="*"){let X=T[M]||"";x=m.slice(0,m.length-X.length).replace(/(.)\/+$/,"$1")}const Y=T[M];return N&&!Y?y[C]=void 0:y[C]=(Y||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:x,pattern:u}}function Vy(u,s=!1,d=!0){Gt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let c=[],h="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,T,b,y,C)=>{if(c.push({paramName:T,isOptional:b!=null}),b){let N=C.charAt(y+x.length);return N&&N!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(c.push({paramName:"*"}),h+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?h+="\\/*$":u!==""&&u!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,s?void 0:"i"),c]}function Xy(u){try{return u.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return Gt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),u}}function ol(u,s){if(s==="/")return u;if(!u.toLowerCase().startsWith(s.toLowerCase()))return null;let d=s.endsWith("/")?s.length-1:s.length,c=u.charAt(d);return c&&c!=="/"?null:u.slice(d)||"/"}var Qy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Zy(u,s="/"){let{pathname:d,search:c="",hash:h=""}=typeof u=="string"?Va(u):u,m;return d?(d=d.replace(/\/\/+/g,"/"),d.startsWith("/")?m=xh(d.substring(1),"/"):m=xh(d,s)):m=s,{pathname:m,search:ky(c),hash:Iy(h)}}function xh(u,s){let d=s.replace(/\/+$/,"").split("/");return u.split("/").forEach(h=>{h===".."?d.length>1&&d.pop():h!=="."&&d.push(h)}),d.length>1?d.join("/"):"/"}function Zc(u,s,d,c){return`Cannot include a '${u}' character in a manually specified \`to.${s}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Ky(u){return u.filter((s,d)=>d===0||s.route.path&&s.route.path.length>0)}function Uh(u){let s=Ky(u);return s.map((d,c)=>c===s.length-1?d.pathname:d.pathnameBase)}function Fc(u,s,d,c=!1){let h;typeof u=="string"?h=Va(u):(h={...u},_e(!h.pathname||!h.pathname.includes("?"),Zc("?","pathname","search",h)),_e(!h.pathname||!h.pathname.includes("#"),Zc("#","pathname","hash",h)),_e(!h.search||!h.search.includes("#"),Zc("#","search","hash",h)));let m=u===""||h.pathname==="",x=m?"/":h.pathname,T;if(x==null)T=d;else{let N=s.length-1;if(!c&&x.startsWith("..")){let M=x.split("/");for(;M[0]==="..";)M.shift(),N-=1;h.pathname=M.join("/")}T=N>=0?s[N]:"/"}let b=Zy(h,T),y=x&&x!=="/"&&x.endsWith("/"),C=(m||x===".")&&d.endsWith("/");return!b.pathname.endsWith("/")&&(y||C)&&(b.pathname+="/"),b}var Bt=u=>u.join("/").replace(/\/\/+/g,"/"),Jy=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),ky=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Iy=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,$y=class{constructor(u,s,d,c=!1){this.status=u,this.statusText=s||"",this.internal=c,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function Wy(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Fy(u){return u.map(s=>s.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Dh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Mh(u,s){let d=u;if(typeof d!="string"||!Qy.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let c=d,h=!1;if(Dh)try{let m=new URL(window.location.href),x=d.startsWith("//")?new URL(m.protocol+d):new URL(d),T=ol(x.pathname,s);x.origin===m.origin&&T!=null?d=T+x.search+x.hash:h=!0}catch{Gt(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:h,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Hh=["POST","PUT","PATCH","DELETE"];new Set(Hh);var Py=["GET",...Hh];new Set(Py);var Xa=w.createContext(null);Xa.displayName="DataRouter";var gu=w.createContext(null);gu.displayName="DataRouterState";var ev=w.createContext(!1),Lh=w.createContext({isTransitioning:!1});Lh.displayName="ViewTransition";var tv=w.createContext(new Map);tv.displayName="Fetchers";var lv=w.createContext(null);lv.displayName="Await";var Ot=w.createContext(null);Ot.displayName="Navigation";var Kn=w.createContext(null);Kn.displayName="Location";var cl=w.createContext({outlet:null,matches:[],isDataRoute:!1});cl.displayName="Route";var Pc=w.createContext(null);Pc.displayName="RouteError";var Yh="REACT_ROUTER_ERROR",av="REDIRECT",nv="ROUTE_ERROR_RESPONSE";function iv(u){if(u.startsWith(`${Yh}:${av}:{`))try{let s=JSON.parse(u.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function uv(u){if(u.startsWith(`${Yh}:${nv}:{`))try{let s=JSON.parse(u.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new $y(s.status,s.statusText,s.data)}catch{}}function ov(u,{relative:s}={}){_e(Jn(),"useHref() may be used only in the context of a component.");let{basename:d,navigator:c}=w.useContext(Ot),{hash:h,pathname:m,search:x}=kn(u,{relative:s}),T=m;return d!=="/"&&(T=m==="/"?d:Bt([d,m])),c.createHref({pathname:T,search:x,hash:h})}function Jn(){return w.useContext(Kn)!=null}function qt(){return _e(Jn(),"useLocation() may be used only in the context of a component."),w.useContext(Kn).location}var Bh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Gh(u){w.useContext(Ot).static||w.useLayoutEffect(u)}function cv(){let{isDataRoute:u}=w.useContext(cl);return u?Sv():rv()}function rv(){_e(Jn(),"useNavigate() may be used only in the context of a component.");let u=w.useContext(Xa),{basename:s,navigator:d}=w.useContext(Ot),{matches:c}=w.useContext(cl),{pathname:h}=qt(),m=JSON.stringify(Uh(c)),x=w.useRef(!1);return Gh(()=>{x.current=!0}),w.useCallback((b,y={})=>{if(Gt(x.current,Bh),!x.current)return;if(typeof b=="number"){d.go(b);return}let C=Fc(b,JSON.parse(m),h,y.relative==="path");u==null&&s!=="/"&&(C.pathname=C.pathname==="/"?s:Bt([s,C.pathname])),(y.replace?d.replace:d.push)(C,y.state,y)},[s,d,m,h,u])}w.createContext(null);function kn(u,{relative:s}={}){let{matches:d}=w.useContext(cl),{pathname:c}=qt(),h=JSON.stringify(Uh(d));return w.useMemo(()=>Fc(u,JSON.parse(h),c,s==="path"),[u,h,c,s])}function sv(u,s){return qh(u,s)}function qh(u,s,d){var q;_e(Jn(),"useRoutes() may be used only in the context of a component.");let{navigator:c}=w.useContext(Ot),{matches:h}=w.useContext(cl),m=h[h.length-1],x=m?m.params:{},T=m?m.pathname:"/",b=m?m.pathnameBase:"/",y=m&&m.route;{let G=y&&y.path||"";Xh(T,!y||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${T}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let C=qt(),N;if(s){let G=typeof s=="string"?Va(s):s;_e(b==="/"||((q=G.pathname)==null?void 0:q.startsWith(b)),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${G.pathname}" was given in the \`location\` prop.`),N=G}else N=C;let M=N.pathname||"/",Y=M;if(b!=="/"){let G=b.replace(/^\//,"").split("/");Y="/"+M.replace(/^\//,"").split("/").slice(G.length).join("/")}let X=zh(u,{pathname:Y});Gt(y||X!=null,`No routes matched location "${N.pathname}${N.search}${N.hash}" `),Gt(X==null||X[X.length-1].route.element!==void 0||X[X.length-1].route.Component!==void 0||X[X.length-1].route.lazy!==void 0,`Matched leaf route at location "${N.pathname}${N.search}${N.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let B=pv(X&&X.map(G=>Object.assign({},G,{params:Object.assign({},x,G.params),pathname:Bt([b,c.encodeLocation?c.encodeLocation(G.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?b:Bt([b,c.encodeLocation?c.encodeLocation(G.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),h,d);return s&&B?w.createElement(Kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...N},navigationType:"POP"}},B):B}function fv(){let u=xv(),s=Wy(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),d=u instanceof Error?u.stack:null,c="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},x=null;return console.error("Error handled by React Router default ErrorBoundary:",u),x=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:m},"ErrorBoundary")," or"," ",w.createElement("code",{style:m},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},s),d?w.createElement("pre",{style:h},d):null,x)}var dv=w.createElement(fv,null),Vh=class extends w.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,s){return s.location!==u.location||s.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:s.error,location:s.location,revalidation:u.revalidation||s.revalidation}}componentDidCatch(u,s){this.props.onError?this.props.onError(u,s):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const d=uv(u.digest);d&&(u=d)}let s=u!==void 0?w.createElement(cl.Provider,{value:this.props.routeContext},w.createElement(Pc.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?w.createElement(hv,{error:u},s):s}};Vh.contextType=ev;var Kc=new WeakMap;function hv({children:u,error:s}){let{basename:d}=w.useContext(Ot);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let c=iv(s.digest);if(c){let h=Kc.get(s);if(h)throw h;let m=Mh(c.location,d);if(Dh&&!Kc.get(s))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw Kc.set(s,x),x}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function mv({routeContext:u,match:s,children:d}){let c=w.useContext(Xa);return c&&c.static&&c.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=s.route.id),w.createElement(cl.Provider,{value:u},d)}function pv(u,s=[],d){let c=d==null?void 0:d.state;if(u==null){if(!c)return null;if(c.errors)u=c.matches;else if(s.length===0&&!c.initialized&&c.matches.length>0)u=c.matches;else return null}let h=u,m=c==null?void 0:c.errors;if(m!=null){let C=h.findIndex(N=>N.route.id&&(m==null?void 0:m[N.route.id])!==void 0);_e(C>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,C+1))}let x=!1,T=-1;if(d&&c){x=c.renderFallback;for(let C=0;C=0?h=h.slice(0,T+1):h=[h[0]];break}}}}let b=d==null?void 0:d.onError,y=c&&b?(C,N)=>{var M,Y;b(C,{location:c.location,params:((Y=(M=c.matches)==null?void 0:M[0])==null?void 0:Y.params)??{},unstable_pattern:Fy(c.matches),errorInfo:N})}:void 0;return h.reduceRight((C,N,M)=>{let Y,X=!1,B=null,q=null;c&&(Y=m&&N.route.id?m[N.route.id]:void 0,B=N.route.errorElement||dv,x&&(T<0&&M===0?(Xh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),X=!0,q=null):T===M&&(X=!0,q=N.route.hydrateFallbackElement||null)));let G=s.concat(h.slice(0,M+1)),F=()=>{let K;return Y?K=B:X?K=q:N.route.Component?K=w.createElement(N.route.Component,null):N.route.element?K=N.route.element:K=C,w.createElement(mv,{match:N,routeContext:{outlet:C,matches:G,isDataRoute:c!=null},children:K})};return c&&(N.route.ErrorBoundary||N.route.errorElement||M===0)?w.createElement(Vh,{location:c.location,revalidation:c.revalidation,component:B,error:Y,children:F(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:y}):F()},null)}function er(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yv(u){let s=w.useContext(Xa);return _e(s,er(u)),s}function vv(u){let s=w.useContext(gu);return _e(s,er(u)),s}function gv(u){let s=w.useContext(cl);return _e(s,er(u)),s}function tr(u){let s=gv(u),d=s.matches[s.matches.length-1];return _e(d.route.id,`${u} can only be used on routes that contain a unique "id"`),d.route.id}function bv(){return tr("useRouteId")}function xv(){var c;let u=w.useContext(Pc),s=vv("useRouteError"),d=tr("useRouteError");return u!==void 0?u:(c=s.errors)==null?void 0:c[d]}function Sv(){let{router:u}=yv("useNavigate"),s=tr("useNavigate"),d=w.useRef(!1);return Gh(()=>{d.current=!0}),w.useCallback(async(h,m={})=>{Gt(d.current,Bh),d.current&&(typeof h=="number"?await u.navigate(h):await u.navigate(h,{fromRouteId:s,...m}))},[u,s])}var Sh={};function Xh(u,s,d){!s&&!Sh[u]&&(Sh[u]=!0,Gt(!1,d))}w.memo(Tv);function Tv({routes:u,future:s,state:d,isStatic:c,onError:h}){return qh(u,void 0,{state:d,isStatic:c,onError:h})}function _t(u){_e(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function Ev({basename:u="/",children:s=null,location:d,navigationType:c="POP",navigator:h,static:m=!1,unstable_useTransitions:x}){_e(!Jn(),"You cannot render a inside another . You should never have more than one in your app.");let T=u.replace(/^\/*/,"/"),b=w.useMemo(()=>({basename:T,navigator:h,static:m,unstable_useTransitions:x,future:{}}),[T,h,m,x]);typeof d=="string"&&(d=Va(d));let{pathname:y="/",search:C="",hash:N="",state:M=null,key:Y="default",unstable_mask:X}=d,B=w.useMemo(()=>{let q=ol(y,T);return q==null?null:{location:{pathname:q,search:C,hash:N,state:M,key:Y,unstable_mask:X},navigationType:c}},[T,y,C,N,M,Y,c,X]);return Gt(B!=null,` is not able to match the URL "${y}${C}${N}" because it does not start with the basename, so the won't render anything.`),B==null?null:w.createElement(Ot.Provider,{value:b},w.createElement(Kn.Provider,{children:s,value:B}))}function Rv({children:u,location:s}){return sv($c(u),s)}function $c(u,s=[]){let d=[];return w.Children.forEach(u,(c,h)=>{if(!w.isValidElement(c))return;let m=[...s,h];if(c.type===w.Fragment){d.push.apply(d,$c(c.props.children,m));return}_e(c.type===_t,`[${typeof c.type=="string"?c.type:c.type.name}] is not a component. All component children of must be a or `),_e(!c.props.index||!c.props.children,"An index route cannot have child routes.");let x={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(x.children=$c(c.props.children,m)),d.push(x)}),d}var pu="get",yu="application/x-www-form-urlencoded";function bu(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Av(u){return bu(u)&&u.tagName.toLowerCase()==="button"}function Nv(u){return bu(u)&&u.tagName.toLowerCase()==="form"}function wv(u){return bu(u)&&u.tagName.toLowerCase()==="input"}function Ov(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function jv(u,s){return u.button===0&&(!s||s==="_self")&&!Ov(u)}var hu=null;function zv(){if(hu===null)try{new FormData(document.createElement("form"),0),hu=!1}catch{hu=!0}return hu}var Cv=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jc(u){return u!=null&&!Cv.has(u)?(Gt(!1,`"${u}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${yu}"`),null):u}function _v(u,s){let d,c,h,m,x;if(Nv(u)){let T=u.getAttribute("action");c=T?ol(T,s):null,d=u.getAttribute("method")||pu,h=Jc(u.getAttribute("enctype"))||yu,m=new FormData(u)}else if(Av(u)||wv(u)&&(u.type==="submit"||u.type==="image")){let T=u.form;if(T==null)throw new Error('Cannot submit a